package com.stujyh.mapper;

import com.stujyh.entity.User;

import java.util.List;

public interface UserMapper {
    User selectUserById(Integer id);
    List<User> selectAllUsers();
    int insertUser(User user);

    int updateUser(User user);

    int deleteUserById(Integer id);

    List<User> selectUsersByName(String name);

    int countUsers();

    User selectUserByEmail(String email);
}
